package org.kzwl.entity.app;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.context.annotation.Configuration;

/**
 * <p>
 *
 * </p>
 *
 * @author 张国伟/郭家恒
 * @since 2020-09-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("cu_user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @TableId(value = "cu_user_id", type = IdType.AUTO)
    private Integer cuUserId;

    /**
     * 用户名
     */
    @TableField("cu_username")
    private String cuUsername;

    /**
     * 手机号
     */
    @TableField("cu_user_phone")
    private String cuUserPhone;

    /**
     * 密码
     */
    @TableField("cu_user_password")
    private String cuUserPassword;

    /**
     * 头像
     */
    @TableField("cu_user_image")
    private String cuUserImage;

    /**
     * 已看x本书
     */
    @TableField("cu_user_read_count")
    private Integer cuUserReadCount;

    /**
     * 已看时长
     */
    @TableField("cu_user_read_hour")
    private BigDecimal cuUserReadHour;

    private Integer cuUserIsVolunteer;
    /**
     * 是否可以创建会议 0-否 1-是
     */
    private Integer cuUserMeeting;

    /**
     * 是否拥有直播权限 0否1是
     */
    private Integer cuUserIsLive;

    /**
     * 今日已看时长
     */
    private Integer cuUserDayMinute;

    /**
     * 今日最后一次看书的日期
     */
    private LocalDateTime cuUserMinuteLast;

    /**
     * 连续看书天数
     */
    private Integer cuUserReadDay;



}
